﻿<phone:PhoneApplicationPage
	xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
	xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
	xmlns:phone="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone"
	xmlns:shell="clr-namespace:Microsoft.Phone.Shell;assembly=Microsoft.Phone"
	xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
	xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
	xmlns:controls="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone.Controls" 
	x:Class="WPExpenseReportDemo.PageMain"
	FontFamily="{StaticResource PhoneFontFamilyNormal}"
	FontSize="{StaticResource PhoneFontSizeNormal}"
	Foreground="{StaticResource PhoneForegroundBrush}"
	SupportedOrientations="Portrait" Orientation="Portrait"
	mc:Ignorable="d" d:DesignHeight="696" d:DesignWidth="480"
	shell:SystemTray.IsVisible="True" Loaded="PhoneApplicationPage_Loaded" Margin="0,0,0,0">
	<phone:PhoneApplicationPage.Resources>
		<DataTemplate x:Key="lbERs">
				<StackPanel>
				 <TextBlock Margin="0,0,0,0" Text="{Binding ReportName}" Foreground="#FFC8AB14" FontSize="35" MouseLeftButtonDown="TextBlock_MouseLeftButtonDown" />
				 <TextBlock Text="{Binding ReportDate}" TextWrapping="Wrap" FontSize="24" />
			  </StackPanel>
		</DataTemplate>
		<DataTemplate x:Key="lbDeleteItems">
				<StackPanel>
				 <CheckBox></CheckBox>
                 <TextBlock Margin="0,0,0,0" Text="{Binding ReportName}" Foreground="#FFC8AB14" FontSize="35" MouseLeftButtonDown="TextBlock_MouseLeftButtonDown" />
                 <TextBlock Text="{Binding ReportDate}" TextWrapping="Wrap" FontSize="24" />
			</StackPanel>
		</DataTemplate>
	</phone:PhoneApplicationPage.Resources>



	<controls:Panorama Name="panoMain" Title="panorama" VerticalAlignment="Bottom" ManipulationCompleted="Panorama_ManipulationCompleted">
		<controls:Panorama.Background>
			<ImageBrush ImageSource="/WPExpenseReportDemo;component/PanoramaBackground.png" />
		</controls:Panorama.Background>
		<controls:PanoramaItem Name="piRecents" Header="Recents">
			<StackPanel>
				<ScrollViewer>
					<ListBox Name="lbERs" ItemTemplate="{StaticResource lbERs}"/>
				</ScrollViewer>
			</StackPanel>
		</controls:PanoramaItem>
		<controls:PanoramaItem Name="piSearch" Header="Search">
			<StackPanel>
				<Button Content="By Name"></Button>
				<Button Content="By Date"></Button>
				<Button Content="All"></Button>
			</StackPanel>
		</controls:PanoramaItem>
	</controls:Panorama>


	<phone:PhoneApplicationPage.ApplicationBar>
		<shell:ApplicationBar IsVisible="True" IsMenuEnabled="True">
			<shell:ApplicationBarIconButton IconUri="Images/appbar.new.rest.png" Text="New"/>
			<shell:ApplicationBarIconButton IconUri="Images/appbar.delete.rest.png" Text="Delete" Click="ApplicationBarIconButton_Click" />
			<!--
			<shell:ApplicationBar.MenuItems>
				<shell:ApplicationBarMenuItem Text="MenuItem 1"/>
				<shell:ApplicationBarMenuItem Text="MenuItem 2"/>
			</shell:ApplicationBar.MenuItems>
			-->
		</shell:ApplicationBar>
	</phone:PhoneApplicationPage.ApplicationBar>
</phone:PhoneApplicationPage>
